home *** CD-ROM | disk | FTP | other *** search
- PXFSTRUCTCOPY(3F) Last changed: 1-6-98
-
-
- NNAAMMEE
- PPXXFFSSTTRRUUCCTTCCOOPPYY - Copies structure
-
- SSYYNNOOPPSSIISS
- SSUUBBRROOUUTTIINNEE PPXXFFSSTTRRUUCCTTCCOOPPYY ((_s_t_r_u_c_t_n_a_m_e,, _j_h_a_n_d_l_e_1,, _j_h_a_n_d_l_e_2,, _i_e_r_r_o_r))
- IINNTTEEGGEERR _j_h_a_n_d_l_e_1,, _j_h_a_n_d_l_e_2,, _i_e_r_r_o_r
- CCHHAARRAACCTTEERR*_n _s_t_r_u_c_t_n_a_m_e
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- IEEE standard interface for FORTRAN 77
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- 7.2 F77 compiler.
-
- The PPXXFFSSTTRRUUCCTTCCOOPPYY routine copies structures created with
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F). The structure referenced by _j_h_a_n_d_l_e_1 is copied to
- the structure referenced by _j_h_a_n_d_l_e_2.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following are valid arguments for this routine:
-
- _s_t_r_u_c_t_n_a_m_e
- An input character variable or array element containing the
- structure name corresponding to the two structure handles'
- type.
-
- _j_h_a_n_d_l_e_1 An input structure handle variable to be copied.
-
- _j_h_a_n_d_l_e_2 An output structure handle variable that will contain a copy
- of the structure of _j_h_a_n_d_l_e_1 after successful execution of
- PPXXFFSSTTRRUUCCTTCCOOPPYY.
-
- _i_e_r_r_o_r An output integer variable that contains zero if
- PPXXFFSSTTRRUUCCTTCCOOPPYY was successful or nonzero if PPXXFFSSTTRRUUCCTTCCOOPPYY was
- not successful.
-
- This routine may also return any of the following error values:
-
- EENNOONNAAMMEE If _s_t_r_u_c_t_n_a_m_e is an invalid structure name, or if
- _s_t_r_u_c_t_n_a_m_e does not match the _j_h_a_n_d_l_e_1 and _j_h_a_n_d_l_e_2
- structure type.
-
- EENNOOMMEEMM If memory is unavailable to create data structures needed
- to copy a component.
-
- EEBBAADDHHAANNDDLLEE If _j_h_a_n_d_l_e_1 or _j_h_a_n_d_l_e_2 is an invalid handle or has an
- incorrect handle type (UNICOS and UNICOS/mk only).
-
- EEXXAAMMPPLLEESS
- In this example, two uuttssnnaammee structures are created using
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F). PPXXFFUUNNAAMMEE(3F) is called with one uuttssnnaammee
- structure, which is then copied to the other uuttssnnaammee structure.
-
- program pxftest
- integer jhandle1, jhandle2
- integer ierror
-
- CALL PXFSTRUCTCREATE('utsname',jhandle1,ierror)
- if (ierror .ne. 0) then
- print *,' FAILED: PXFSTRUCTCREATE for utsname1'
- else
- CALL PXFSTRUCTCREATE('utsname',jhandle2,ierror)
- if (ierror .ne. 0) then
- print *,' FAILED: PXFSTRUCTCREATE for utsname2 with error = ',ierror
- else
- CALL PXFUNAME(jhandle1,ierror)
- if (ierror .ne. 0) then
- print *,' FAILED: PXFUNAME for utsname1 with error = ',ierror
- else
- CALL PXFSTRUCTCOPY('utsname',jhandle1,jhandle2,ierror)
- if (ierror .ne. 0) then
- print *,' FAILED: PXFSTRUCTCOPY with error = ', ierror
- else
- print *,' PASSED: PXFSTRUCTCOPY test for utsname struct'
- endif
- endif
- endif
- endif
-
- CALL PXFSTRUCTFREE(jhandle1,ierror)
- CALL PXFSTRUCTFREE(jhandle2,ierror)
- end
-
- SSEEEE AALLSSOO
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE(3F), PPXXFFUUNNAAMMEE(3F)
-
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
- 2165, for the printed version of this man page.
-
-